package BookSystem.user;

import BookSystem.book.BookList;
import BookSystem.operation.IOperation;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 */
public abstract class User {
    protected String name;
    protected IOperation[] iOperations;

    public User(String name){
        this.name = name;
    }

    // 展示菜单
    public abstract int menu();

    public void doWork(int choice, BookList bookList){
        this.iOperations[choice].work(bookList);
    }
}
